package me.zhenqu.model.bo;

import me.zhenqu.model.pojo.entity.User;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: yibing.tan
 * Date: 11-11-8
 * Time: 下午5:32
 * To change this template use File | Settings | File Templates.
 */
public interface UserBo extends AbstractBo<Long, User>{

    User findByNickName(String nick_name);

    List<Long> loadFollowingUserIds(Long user_id);

    List<Long> loadFollowedUserIds(Long user_id);

    void follow(Long user_id, Long targetId);

    boolean isFollowing(Long user_id, Long targetId);

    boolean isFollowed(Long user_id, Long targetId);

    void unfollow(Long user_id, Long targetId);

    List<User> search(String keyword);
}
